package com.wmada.toolkit.ffmpeg.prop;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author will.ma
 * @date 2020-11-3
 */
public class MediaInfo {

    private final List<VideoInfo>    videoInfos    = new ArrayList<>();
    private final List<AudioInfo>    audioInfos    = new ArrayList<>();
    private final List<SubTitleInfo> subTitleInfos = new ArrayList<>();

    public void addVideoInfo(VideoInfo videoInfo) {
        videoInfos.add(videoInfo);
    }

    public void addAudioInfo(AudioInfo audioInfo) {
        audioInfos.add(audioInfo);
    }

    public void addSubTitleInfo(SubTitleInfo subTitleInfo) {
        subTitleInfos.add(subTitleInfo);
    }

    public List<VideoInfo> getVideoInfos() {
        return Collections.unmodifiableList(videoInfos);
    }

    public List<AudioInfo> getAudioInfos() {
        return Collections.unmodifiableList(audioInfos);
    }

    public List<SubTitleInfo> getSubTitleInfos() {
        return Collections.unmodifiableList(subTitleInfos);
    }
}
